<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改用户</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
    <style>
        #form {
            margin-top: 20px;
        }

        label {
            font-weight: 700;
        }
    </style>
</head>
<body>
<div id="form">
    <form class="bs-example bs-example-form" role="form" action="/editUsers" method="post">
        <div class="form-group has-feedback">
            <label class="col-md-2 control-label" for="id">用 户 ID</label>
            <div class="col-md-6">
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
                <input type="text" class="form-control" readonly="readonly" id="id" th:value="${editUser.getId()}"
                       name="id" autofocus>
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="col-md-2 control-label" for="username">用 户 名</label>
            <div class="col-md-6">
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
                <input type="text" class="form-control" id="username" readonly="readonly"
                       th:value="${editUser.getLoginName()}"
                       name="loginName" autofocus>
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="col-md-2 control-label" for="password">密 &emsp;码</label>
            <div class="col-md-6">
                <i></i>
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                <input type="text" class="form-control" id="password" th:value="${editUser.getLoginPwd()}"
                       required="required" name="loginPwd">
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="col-md-2 control-label" for="authority">用 户 权 限</label>
            <div class="col-md-6">
                <i></i>
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                <select name="permission" class="form-control" id="authority">
                    <option value="0" th:selected="${editUser.getPermission()}">普通用户</option>
                    <option value="1" th:selected="${editUser.getPermission()}">管理员</option>
                </select>
                <button type="submit" class="btn btn-primary" style="margin-top: 20px">提交</button>
            </div>
        </div>
    </form>
</div>

</body>
</html>